<?php
require_once('../../core.inc.php');
require_once('Model/Uploader.php');

$uploader = new Model_Uploader();

if (isset($_GET['cache'])){
    $uploader->preview($_GET['cache']);
    exit();
}
elseif (isset($_FILES)){
    echo(json_encode($uploader->getUploadInfo()));
    exit();
}

?>